import request from '@/router/axios';

// 获取列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/hg-public/account/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 删除
export const remove = (id) => {
  return request({
    url: '/api/hg-public/account/remove',
    method: 'get',
    params: {
      id
    }
  })
}

// 保存
export const save = (data,ids) => {
  return request({
    url: '/api/hg-public/account/save',
    method: 'post',
    data: data,
    params: {
      ids
    }
  })
}

// 详情
export const detail = (id) => {
  return request({
    url: '/api/hg-public/account/info',
    method: 'get',
    params: {
      id
    }
  })
}
// 删除附件
export const removeFlies = (ids) => {
  return request({
    url: '/api/hg-public/account/remove',
    method: 'post',
    params: {
      ids
    }
  })
}
export const getAllSupplier = (supplierTypes) => {
  return request({
    url: '/api/blade-supplier-management/supplierinfo/supplierListNoPage',
    method: 'get',
    params: {
      supplierTypes
    }
  })
}

// 指标项查询
export const select = (equipmentCategory,isOther) => {
  return request({
    url: '/api/hg-public/account/select',
    method: 'get',
    params: {
      equipmentCategory,
      isOther
    }
  })
}

